with open("./poem.txt","w") as file:
    """
        文件对象.name
        获取文件对象的名称
    """
    #./poem.txt
    print(file.name)
    """
        文件对象.mode
        文件对象的访问模式
    """
    # w
    print(file.mode)
    """
        文件对象.closed
        文件对象是否关闭
    """
    #False
    print(file.closed)